package car;

public class SportCar extends Car{
	private boolean isCabriolet;
	private boolean isSportCar;
	
	void switchTurbo(){
		System.out.println("Turbo is switched on!");
		setCurrentSpeed(getCurrentSpeed()+20);
	}
	
	public boolean isSportCar() {
		return isSportCar;
	}

	public void setSportCar(boolean isSportCar) {
		this.isSportCar = isSportCar;
	}

	SportCar(){
		setSportCar(true);
	}

	public boolean isCabriolet() {
		return isCabriolet;
	}

	public void setCabriolet(boolean isCabriolet) {
		this.isCabriolet = isCabriolet;
	}

	SportCar(String model, boolean isCabriolet, int maxSpeed){
		this();
		setCabriolet(isCabriolet);
		setModel(model);
		setMaxSpeed(maxSpeed);
	}
	
	@Override
	void startEngine(){
		super.startEngine();
		System.out.println("Engine is started!");
		switchTurbo();
	}
}
